<template>
	<view class="container">
		<u-navbar :is-fixed="false" :border-bottom="false" :is-back="true" back-icon-name="arrow-leftward"
			back-icon-size="35" :background="{ background: '#151e3d' }" title="修改支付密码" title-color="aliceblue">
		</u-navbar>
		<view class="form">
			<u-form :model="form" ref="uForm">
				<view class="test">
					<u-form-item label="" label-width="130rpx">
						<u-input type="password" placeholder="请输入支付密码" password-icon placeholder-style="color: #414856"
							:custom-style="inputStyle" />
					</u-form-item>
					<u-form-item label="" label-width="130rpx">
						<u-input type="text" placeholder="请输入手机号" password-icon placeholder-style="color: #414856" />
					</u-form-item>
					<u-form-item label="" label-width="130rpx">
						<u-input type="text" placeholder="请输入验证码" password-icon placeholder-style="color: #414856" />
					</u-form-item>
					<view class="info"> 密码必须为6-18位字符,包含数字、字母</view>
				</view>
			</u-form>
			<u-button type="warning" ripple="true" :custom-style="customStyle" @click="submit">确认</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {},
				customStyle: {
					marginTop: "200rpx", // 注意驼峰命名，并且值必须用引号包括，因为这是对象
					backgroundColor: "#c09358",
				},
				inputStyle: {
					color: "aliceblue",
					display: 'inline-flex',
					width: '200rpx'
				}
			};
		},
		methods: {
			submit(e) {
				console.log("submit", e);
			},
		},
	};
</script>

<style lang="scss" scoped>
	.container {
		color: aliceblue;
		min-height: 100vh;
		background-color: #151e3d;

		.form {
			padding: 30rpx;

			// display:inline-flex
			//display: inline-block;
			.test {
				// display:inline-flex
			}

			.info {
				margin-top: 10rpx;
				color: #696c89;
				font-size: 24rpx;
			}
		}
	}
</style>
